﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegistrarSocio.aspx.cs" Inherits="Biblioteca.RegistrarSocio" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Registrar Socio</title>
</head>
<body>

  
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server"/>
    <div>
    <center>
    <table width="350px" cellpadding="10" cellspacing="10" style="margin-right: 0px" >
        <tr  align="left">
            <td  style="width: 30%" >
                <asp:Label  ID="lblDni" runat="server" >Dni</asp:Label>
           </td>
                <td>
                <asp:TextBox  ID="txtDni" runat="server" Width="100%" Height="25px"></asp:TextBox>
                
               <ajaxToolkit:MaskedEditExtender ID="idMaskDni" runat="server"
                    TargetControlID="txtDni" 
                    Mask="99-999-999"
                    MessageValidatorTip="true" 
                    OnFocusCssClass="MaskedEditFocus" 
                    OnInvalidCssClass="MaskedEditError"
                    MaskType="Number" 
                    InputDirection="RightToLeft" 
                    AcceptNegative="None" 
                    DisplayMoney="None"
                    ErrorTooltipEnabled="True"
               >
                </ajaxToolkit:MaskedEditExtender>
                <ajaxToolkit:MaskedEditValidator ID="idValidadorDni"  
                 ValidationGroup="validacion"
                ControlExtender="idMaskDni"
                ControlToValidate="txtDni" runat="server"                               
                IsValidEmpty="False" 
                EmptyValueMessage="Ingrese numeros"
                InvalidValueMessage="Solo numeros son validos"                               
                EmptyValueBlurredText="*" 
                InvalidValueBlurredMessage="*" 
                MaximumValueBlurredMessage="*" 
                MinimumValueBlurredText="*"
                Display="Dynamic" 
                TooltipMessage="Debe ingresar numero de dni"></ajaxToolkit:MaskedEditValidator>
            </td>
        </tr>
    <tr align="left">
            <td >
                <asp:Label ID="lblNombre" runat="server">Nombre</asp:Label>
                </td>
                <td>
                <asp:TextBox ID="txtNombre" runat="server"  Width="100%" Height="25px"></asp:TextBox>
            </td>
        </tr>
        <tr align="left">
            <td >
                <asp:Label ID="lblNomUsuario" runat="server">Nombre Usuario</asp:Label>
               </td>
                <td>
                <asp:TextBox ID="txtNomUsuario" runat="server" Width="100%"  Height="25px"></asp:TextBox>
            </td>
        </tr>
        <tr align="left">
            <td>
                <asp:Label ID="lblPass" runat="server">Password</asp:Label>
               </td>
               <td>
                <asp:TextBox ID="txtPass" TextMode="Password"  runat="server" Width="100%"  Height="25px"></asp:TextBox>
                   <ajaxToolkit:PasswordStrength ID="PasswordStrength1" runat="server" 
                        TargetControlID="txtPass"                      
                        DisplayPosition="RightSide"
                        StrengthIndicatorType="Text"
                        PreferredPasswordLength="10"
                        PrefixText="Seguridad de contraseña:"                      
                        MinimumNumericCharacters="8"
                        MinimumSymbolCharacters="8"                       
                        TextStrengthDescriptions="Mala;Regular;Buena;Muy buena;Excelente"  
                        RequiresUpperAndLowerCaseCharacters="false"
                 
                   >
                   </ajaxToolkit:PasswordStrength>
          
            </td>
        </tr>
         <tr align="left">
            <td>
                <asp:Label ID="lblMail" runat="server">Email</asp:Label>
               </td>
               <td>
                <asp:TextBox ID="txtMail"  runat="server" Width="100%"  Height="25px"></asp:TextBox>
           
               <asp:RegularExpressionValidator
              ID="EmailRegularExpressionValidator"
              runat="server"
              ControlToValidate="txtMail"
              Display="Dynamic"
              ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
               ErrorMessage="El mail es incorrecto"
               
              >
            </asp:RegularExpressionValidator>
           
            </td>
        </tr>
        <tr>
        <table>   
        
       <tr>   
       <td style="width:100%">
            <asp:Button ID="btnRegistrar"  runat="server"  Text="Registrar"  Height="30px" 
                Width="120px" onclick="btnRegistrar_Click" />
            <asp:Button  ID="btnCancel" runat="server" Text="Cancelar" Height="30px" Width="120px" /> 
        </td>
       </tr>
       </table>         
      </tr>
      </table>
</center>    

    </div>
    </form>
</body>
</html>
